home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ HTML Workshop Clear.xpl < prev    next >
Text File  |  2000-11-12  |  1KB  |  64 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="5"
  3. "COUNT"="1"
  4. "UIPATH"="Program Options\Other Programs\MS HTML Workshop\"
  5. "NAME"="Clear Items"
  6. "VERSION"="1.02"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Clear recent file list"
  9. "TEXT 2"="Clear Radio Links"
  10. "TEXT 3"="C"
  11. "TEXT 4"="D"
  12. "DESCRIPTION 1"="If you do not want that other people can see the items you have opened, click the button."
  13. "AUTHOR"="CptSiskoX"
  14. "CONTACTURL"="http://members.fortunecity.com/computingx/"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"=" "
  17. "COMMENT 2"="Aren't plug-in comments great? <g> - CptSiskoX"
  18. "COMMENT 3"="http://www.fortunecity.com/meltingpot/ny/413/"
  19.  
  20. sP="HKCU\Software\Microsoft\HTML Help Workshop\Recent File List\"
  21.  
  22.  
  23. Sub Plugin_Initialize 
  24.   If RegPathExists(sP)=false then
  25.      Disable()
  26.   end if 
  27. End Sub
  28.  
  29. Sub Plugin_CheckData(ElementIndex)
  30. End Sub
  31.  
  32. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  33.  if ElementIndex=1 then     
  34.     for l=1 to 30
  35.         s="file" & l
  36.         v=RegReadValue(sP & s)
  37.         
  38.         If IsEmpty(v)=false then
  39.            Call RegDeleteValue(sP & S)
  40.         end if
  41.     Next
  42.  
  43.     Call MsgInformation("Cleared!")
  44.  end if
  45.  
  46.  
  47.  if ElementIndex=2 then 
  48.     'i=RegEnumValues(sp2a)
  49.     'for l=1 to i
  50.     '    Call RegDeleteValue(sp2a & RegEnumElement(l))
  51.     'Next
  52.     'Call RegWriteValue(sp2b,0,2)
  53.  
  54.  
  55.     'Call MsgInformation("Radio links cleared")
  56.  end if
  57.  
  58.  
  59.  
  60. End Sub
  61.  
  62. Sub Plugin_Terminate 
  63. End Sub
  64.